/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.yournamehere.client;
  
import com.smartgwt.client.types.Alignment;  
import com.smartgwt.client.types.Overflow;  
import com.smartgwt.client.widgets.Label;  
import com.smartgwt.client.widgets.layout.HLayout;  
import com.smartgwt.client.widgets.layout.VLayout;  

import com.google.gwt.core.client.EntryPoint;  
import org.yournamehere.client.vistas.Principal;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.RootPanel;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.Img;

import com.smartgwt.client.widgets.layout.VLayout;
import org.yournamehere.client.vistas.VistaAdministrador;
import org.yournamehere.client.vistas.VistaCliente;


/**
 * Main entry point.
 *
 * @author alberto
 */
public class MainEntryPoint implements EntryPoint {
    /** 
     * Creates a new instance of MainEntryPoint
     */       
    

    VistaAdministrador VistaAdministrador;
    
    
    public void onModuleLoad() {  
        
        //VistaCliente vistaCliente = new VistaCliente();
        
        VLayout vLayout = new VLayout();
        vLayout.setHeight("70%");
        vLayout.setWidth100();
        
        //vLayout.addMember(vistaCliente);
        //vLayout.draw();
          
         
        
        VLayout titulo = new VLayout();
        titulo.setHeight("30%");
        titulo.setWidth100();
        
        VLayout main = new VLayout();        
        main.setWidth100();
        main.setHeight100();

        
        Canvas canvas = new Canvas();
        String imagen = "/TP-PW-war/img/paraguay.jpg";
        Img img = new Img(imagen);
        img.setHeight(150);
        img.setWidth100();
        canvas.addChild(img);
                
        titulo.addMember(canvas);
       
        VistaAdministrador = new VistaAdministrador();
        vLayout.addMember(VistaAdministrador);
        
        
        main.addMember(titulo);
        main.addMember(vLayout);
        
    	main.draw();
         
        
        
       
    } 
}
